package com.flurry.android;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import com.inmobi.androidsdk.IMAdInterstitial;
import com.inmobi.androidsdk.IMAdRequest;
import java.lang.reflect.Method;

class dy extends do
{
  private static final String p = dy.class.getSimpleName();
  private final boolean bU;
  private final Method fH;
  private final String q;

  public dy(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdUnit paramAdUnit, Bundle paramBundle)
  {
    super(paramContext, paramFlurryAds, paramcw, paramAdUnit);
    this.q = paramBundle.getString("com.flurry.inmobi.MY_APP_ID");
    this.bU = paramBundle.getBoolean("com.flurry.inmobi.test");
    Method[] arrayOfMethod = IMAdInterstitial.class.getMethods();
    int i = arrayOfMethod.length;
    int j = 0;
    Method localMethod;
    if (j < i)
    {
      localMethod = arrayOfMethod[j];
      String str = localMethod.getName();
      if ((!str.equals("setIMAdInterstitialListener")) && (!str.equals("setImAdInterstitialListener")));
    }
    while (true)
    {
      this.fH = localMethod;
      return;
      j++;
      break;
      localMethod = null;
    }
  }

  public final void M()
  {
    IMAdInterstitial localIMAdInterstitial = new IMAdInterstitial((Activity)getContext(), this.q);
    bp localbp = new bp(this);
    if ((this.fH == null) || (localIMAdInterstitial == null));
    while (true)
    {
      IMAdRequest localIMAdRequest = new IMAdRequest();
      if (this.bU)
      {
        Log.d(p, "InMobi Interstitial set to Test Mode.");
        localIMAdRequest.setTestMode(true);
      }
      localIMAdInterstitial.loadNewAd(localIMAdRequest);
      return;
      try
      {
        this.fH.invoke(localIMAdInterstitial, new Object[] { localbp });
      }
      catch (Exception localException)
      {
      }
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.dy
 * JD-Core Version:    0.6.2
 */